#!/bin/sh

# Startup file for atheme services.
# Note that atheme needs starting after your IRC daemon.

start() {
    atheme-services
}

stop() {
    killall atheme-services
}

hup() {
    killall -HUP atheme-services
}

case "$1" in
    'start')
        start
        ;;
    'stop')
        stop
        ;;
    'hup')
        hup
        ;;
    'restart')
        stop
        sleep 1
        start
        ;;
esac
